package com.info.zhiduoduo.core.formbean;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class BankCardElementFormBean {

    @ApiModelProperty("身份证号")
    private String idCard;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("银行卡号")
    private String bankcard;

    @ApiModelProperty("手机号")
    private String mobile;

    public static BankCardElementFormBean ofTwo(String name, String bankcard) {
        BankCardElementFormBean bean = new BankCardElementFormBean();
        bean.setBankcard(bankcard);
        bean.setName(name);
        return bean;
    }

    public static BankCardElementFormBean ofThree(String name, String bankcard, String idCard) {
        BankCardElementFormBean bean = new BankCardElementFormBean();
        bean.setBankcard(bankcard);
        bean.setName(name);
        bean.setIdCard(idCard);
        return bean;
    }

    public static BankCardElementFormBean ofAll(String name, String bankcard, String idCard, String mobile) {
        BankCardElementFormBean bean = new BankCardElementFormBean();
        bean.setBankcard(bankcard);
        bean.setName(name);
        bean.setIdCard(idCard);
        bean.setMobile(mobile);
        return bean;
    }

}
